from django.db import models

# Create your models here.

class User(models.Model):
    username = models.CharField(max_length=200)
    password = models.CharField(max_length=200)

class Comment(models.Model):
    content = models.CharField(max_length=400)
    user_id = models.IntegerField(default=0)
    news_id = models.IntegerField(default=0)

class News(models.Model):
    title = models.CharField(max_length=200)
    content = models.CharField(max_length=200)
    user_id = models.CharField(max_length=200)
    total_comment = models.CharField(max_length=200)
    total_views = models.CharField(max_length=200)